package com.xuan.error;

import com.sun.xml.internal.bind.v2.runtime.RuntimeUtil;

//
public class myexception extends Exception{
//    传递数字》10
//    接受参数
    private int detail;
    public myexception(int a){
        this.detail=a;
//        super(message);
    }
//ToString异常打印信息
    @Override
    public String toString() {
        return "myexception{" +
                "detail=" + detail +
                '}';
    }
}
